<div class="group-2 width-100 mar-top-20">
	<div class="cnt-group-2 bag-gray">
		<div class="sub-group bag-sub-green"><a href="#"><span class="icon icon-project"></span>Dự án mới</a></div>
		<?php
			$lang = $this->arrParam['lang'];
            if(empty($lang)){
            	$lang = 'vi';
            }else{
            	$lang = $this->arrParam['lang'];
            }
			$tblPro	= new Zendvn_Models_ProItem();
			$pro	= $tblPro->listItem($this->arrParam,array('task'=>'pro-new'));
			if(!empty($pro)){
				foreach ($pro as $key => $value) {
					$tblCut		= new Zendvn_File_CutTring();
            		$name		= str_replace("\\","",$value['name']);
            		$alt		= str_replace("\\","",$value['alt_seo']);
            		$summary	= str_replace("\\","",$value['summary']);
            		$summary	= $tblCut->cutTring(120, $summary, null);
            		
            		if(!empty($value['picture'])){
					    $linkImg	= FILES_URL . '/products/images450x450/' . $value['picture'];
					    $picture 	= '<img src="'. $linkImg .'" alt="'.$value['name'].'" />';
				    }else{
					    $linkImg	= $this->imgUrl . '/no-image.jpg';
					    $picture 	= '<img src="'. $linkImg .'" alt="'.$value['name'].'" />';
				    }
	                
					$urlOptions = array('module'=>'products','controller'=>'index',
														'action'=>'detail',
														'tcat'=>$value['alias_name'],
														'title'=>$value['alias'],
	                    								'cid'=> $value['menu_id'],
														'id'=>$value['id'],
	                    								'lang'=>$lang);
	                $linkDetail = $this->url($urlOptions,'shop-detail');
		?>
		<div class="box width-23">
			<div class="box-cnt">
				<div class="bor-img">
                	<a href="<?php echo $linkDetail?>"><?php echo $picture?></a>
				</div>
				<div class="desc-hover">
                	<div class="cnt-desc">
                    	<h2 class="title-img"><a href="<?php echo $linkDetail?>"><?php echo $name?></a></h2>
                        <p><?php echo $summary?></p>
                    	<div align="center"><a href="<?php echo $linkDetail?>" class="btn-readmore">Xem thêm</a></div>
                	</div>
				</div>
			</div>
		</div>
		<?php
				} 
			}
		?>
	</div>
</div>
